package com.auemall.service;

import com.auemall.utils.EUDataGridResult;
import com.auemall.vo.AttributeVO;
import com.auemall.vo.BaseRespVO;

/**
 * 
 * @ClassName: ItemParamService 
 * @Description: TODO 商品参数管理 （属性管理，商品属性查询）
 * @author WangChao
 * @date 2017年5月10日 下午4:09:20
 */
public interface ItemParamService {

	/**
	 * 
	 * @Title: selectAttributeList 
	 * @Description: TODO(查询属性列表)
	 * @param req
	 * @return
	 * @throws Exception EUDataGridResult  
	 * @author WangChao
	 */
	EUDataGridResult selectAttributeList(AttributeVO req,int page, int rows) throws Exception;
	
	/**
	 * 
	 * @Title: insertAttribute 
	 * @Description: TODO(添加属性)
	 * @param req
	 * @return
	 * @throws Exception BaseReqVO  
	 * @author WangChao
	 */
	BaseRespVO insertAttribute(AttributeVO req) throws Exception;
	
	/**
	 * 
	 * @Title: updateAttribute 
	 * @Description: TODO(修改属性)
	 * @param req
	 * @return
	 * @throws Exception BaseReqVO  
	 * @author WangChao
	 */
	BaseRespVO updateAttribute(AttributeVO req) throws Exception;
	
	/**
	 * 
	 * @Title: deleteAttribute 
	 * @Description: TODO(删除属性)
	 * @param id
	 * @return
	 * @throws Exception BaseReqVO  
	 * @author WangChao
	 */
	BaseRespVO deleteAttribute(String id) throws Exception;
	
	/**
	 * 
	 * @Title: insertAttributeValue 
	 * @Description: TODO(添加属性值)
	 * @param req
	 * @return
	 * @throws Exception BaseReqVO  
	 * @author WangChao
	 */
	BaseRespVO insertAttributeValue(AttributeVO req) throws Exception;
	    
	/**
	 * 
	 * @Title: deleteAttributeValue 
	 * @Description: TODO(删除属性值)
	 * @param id
	 * @return
	 * @throws Exception BaseReqVO  
	 * @author WangChao
	 */
	BaseRespVO deleteAttributeValue(String id) throws Exception;
	
	/**
	 * 
	 * @Title: selectAttrByProductId 
	 * @Description: TODO(查询与指定商品关联的属性值)
	 * @param req
	 * @param page
	 * @param rows
	 * @return
	 * @throws Exception EUDataGridResult  
	 * @author WangChao
	 */
	EUDataGridResult selectAttrByProductId(AttributeVO req,int page, int rows) throws Exception;
	
	
	
}
